﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mode1
{
    public class BorrowInfo
    {
        public int BorrowID { get; set; }
        public virtual BookInfo BookInfo { get; set; }
        public virtual UserInfo UserInfo { get; set; }
        public DateTime BorrowDate { get; set; }
        public DateTime ReturnDate { get; set; }
        public bool IsReturned { get; set; }
        public BorrowInfo() { }
        public BorrowInfo(int borrowId, string bookId, string userId, DateTime borrowDate, DateTime returnDate, bool isReturned)
        {
            this.BorrowID = borrowId;
            this.BookInfo.BookID = bookId;
            this.UserInfo.UserID = userId;
            this.BorrowDate = borrowDate;
            this.ReturnDate = returnDate;
            this.IsReturned = isReturned;
        }
    }

}
